/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MainFrame.java
 *
 * Created on May 26, 2011, 7:41:23 PM
 */

package gui;

/**
 *
 * @author b2
 */
public class MainFrame extends javax.swing.JFrame {

    /** Creates new form MainFrame */
    public MainFrame() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar1 = new javax.swing.JMenuBar();
        jmChucNang = new javax.swing.JMenu();
        jmiBanVe = new javax.swing.JMenuItem();
        jmiNhanLichChuyenBay = new javax.swing.JMenuItem();
        jmiGhiNhanDatCho = new javax.swing.JMenuItem();
        jmiTraCuuChuyenBay = new javax.swing.JMenuItem();
        jmiLapBaoCaoThang = new javax.swing.JMenuItem();
        jmiLapBaoCaoNam = new javax.swing.JMenuItem();
        jmiThoat = new javax.swing.JMenuItem();
        jmQuanTri = new javax.swing.JMenu();
        jmiChuyenBay = new javax.swing.JMenuItem();
        jmiSanBay = new javax.swing.JMenuItem();
        jmiTuyenBay = new javax.swing.JMenuItem();
        jmQuyDinh = new javax.swing.JMenu();
        jmiQDChuyenBay = new javax.swing.JMenuItem();
        jmiQDThoiHanDatVe = new javax.swing.JMenuItem();
        jmiBangDonGia = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Quản lý đại lý bán vé máy bay");
        setBounds(new java.awt.Rectangle(200, 200, 0, 0));
        setResizable(false);

        jmChucNang.setText("Chức năng");

        jmiBanVe.setText("Bán vé");
        jmiBanVe.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiBanVeActionPerformed(evt);
            }
        });
        jmChucNang.add(jmiBanVe);

        jmiNhanLichChuyenBay.setText("Nhận lịch chuyến bay");
        jmiNhanLichChuyenBay.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiNhanLichChuyenBayActionPerformed(evt);
            }
        });
        jmChucNang.add(jmiNhanLichChuyenBay);

        jmiGhiNhanDatCho.setText("Ghi nhận đặt chỗ");
        jmiGhiNhanDatCho.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiGhiNhanDatChoActionPerformed(evt);
            }
        });
        jmChucNang.add(jmiGhiNhanDatCho);

        jmiTraCuuChuyenBay.setText("Tra cứu chuyến bay");
        jmiTraCuuChuyenBay.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiTraCuuChuyenBayActionPerformed(evt);
            }
        });
        jmChucNang.add(jmiTraCuuChuyenBay);

        jmiLapBaoCaoThang.setText("Lập báo cáo tháng");
        jmChucNang.add(jmiLapBaoCaoThang);

        jmiLapBaoCaoNam.setText("Lập báo cáo năm");
        jmChucNang.add(jmiLapBaoCaoNam);

        jmiThoat.setText("Thoát");
        jmiThoat.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiThoatActionPerformed(evt);
            }
        });
        jmChucNang.add(jmiThoat);

        jMenuBar1.add(jmChucNang);

        jmQuanTri.setText("Quản trị");

        jmiChuyenBay.setText("Chuyến bay");
        jmiChuyenBay.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiChuyenBayActionPerformed(evt);
            }
        });
        jmQuanTri.add(jmiChuyenBay);

        jmiSanBay.setText("Sân bay");
        jmiSanBay.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiSanBayActionPerformed(evt);
            }
        });
        jmQuanTri.add(jmiSanBay);

        jmiTuyenBay.setText("Tuyến bay");
        jmiTuyenBay.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiTuyenBayActionPerformed(evt);
            }
        });
        jmQuanTri.add(jmiTuyenBay);

        jmQuyDinh.setText("Quy định");

        jmiQDChuyenBay.setText("QD Chuyến bay");
        jmiQDChuyenBay.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiQDChuyenBayActionPerformed(evt);
            }
        });
        jmQuyDinh.add(jmiQDChuyenBay);

        jmiQDThoiHanDatVe.setText("QD Thời hạn đặt vé");
        jmiQDThoiHanDatVe.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiQDThoiHanDatVeActionPerformed(evt);
            }
        });
        jmQuyDinh.add(jmiQDThoiHanDatVe);

        jmiBangDonGia.setText("QD Bảng đơn giá");
        jmiBangDonGia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiBangDonGiaActionPerformed(evt);
            }
        });
        jmQuyDinh.add(jmiBangDonGia);

        jmQuanTri.add(jmQuyDinh);

        jMenuBar1.add(jmQuanTri);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 279, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jmiBanVeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiBanVeActionPerformed
        // TODO add your handling code here:
        BanVeFrm banve = new BanVeFrm();
        banve.setVisible(true);
    }//GEN-LAST:event_jmiBanVeActionPerformed

    private void jmiChuyenBayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiChuyenBayActionPerformed
        // TODO add your handling code here:
        ChuyenBayFrm frm = new ChuyenBayFrm();
        frm.setVisible(true);
    }//GEN-LAST:event_jmiChuyenBayActionPerformed

    private void jmiTuyenBayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiTuyenBayActionPerformed
        // TODO add your handling code here:
        TuyenBayFrm frm = new TuyenBayFrm();
        frm.setVisible(true);
    }//GEN-LAST:event_jmiTuyenBayActionPerformed

    private void jmiSanBayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiSanBayActionPerformed
        // TODO add your handling code here:
        SanBayFrm frm = new SanBayFrm();
        frm.setVisible(true);
    }//GEN-LAST:event_jmiSanBayActionPerformed

    private void jmiTraCuuChuyenBayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiTraCuuChuyenBayActionPerformed
        // TODO add your handling code here:
        TraCuuChuyenBay frm = new TraCuuChuyenBay();
        frm.setVisible(true);
    }//GEN-LAST:event_jmiTraCuuChuyenBayActionPerformed

    private void jmiNhanLichChuyenBayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiNhanLichChuyenBayActionPerformed
        // TODO add your handling code here:
        NhanLichChuyenBayFrm frm = new NhanLichChuyenBayFrm();
        frm.setVisible(true);
    }//GEN-LAST:event_jmiNhanLichChuyenBayActionPerformed

    private void jmiGhiNhanDatChoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiGhiNhanDatChoActionPerformed
        // TODO add your handling code here:
        DatChoFrm frm = new DatChoFrm();
        frm.setVisible(true);
    }//GEN-LAST:event_jmiGhiNhanDatChoActionPerformed

    private void jmiQDThoiHanDatVeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiQDThoiHanDatVeActionPerformed
        // TODO add your handling code here:
        QDThoiGianDatVeFrm frm = new QDThoiGianDatVeFrm();
        frm.setVisible(true);
    }//GEN-LAST:event_jmiQDThoiHanDatVeActionPerformed

    private void jmiQDChuyenBayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiQDChuyenBayActionPerformed
        // TODO add your handling code here:
        QDChuyenBayFrm frm = new QDChuyenBayFrm();
        frm.setVisible(true);
    }//GEN-LAST:event_jmiQDChuyenBayActionPerformed

    private void jmiBangDonGiaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiBangDonGiaActionPerformed
        // TODO add your handling code here:
        QDDonGiaHangVeFrm frm = new QDDonGiaHangVeFrm();
        frm.setVisible(true);
    }//GEN-LAST:event_jmiBangDonGiaActionPerformed

    private void jmiThoatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiThoatActionPerformed
        // TODO add your handling code here:
        this.dispose();
    }//GEN-LAST:event_jmiThoatActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MainFrame().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenu jmChucNang;
    private javax.swing.JMenu jmQuanTri;
    private javax.swing.JMenu jmQuyDinh;
    private javax.swing.JMenuItem jmiBanVe;
    private javax.swing.JMenuItem jmiBangDonGia;
    private javax.swing.JMenuItem jmiChuyenBay;
    private javax.swing.JMenuItem jmiGhiNhanDatCho;
    private javax.swing.JMenuItem jmiLapBaoCaoNam;
    private javax.swing.JMenuItem jmiLapBaoCaoThang;
    private javax.swing.JMenuItem jmiNhanLichChuyenBay;
    private javax.swing.JMenuItem jmiQDChuyenBay;
    private javax.swing.JMenuItem jmiQDThoiHanDatVe;
    private javax.swing.JMenuItem jmiSanBay;
    private javax.swing.JMenuItem jmiThoat;
    private javax.swing.JMenuItem jmiTraCuuChuyenBay;
    private javax.swing.JMenuItem jmiTuyenBay;
    // End of variables declaration//GEN-END:variables

}
